package klex.eserver.biz.systemmanager.permission.impl;

import java.util.List;

import klex.eserver.biz.systemmanager.SystemManagerBiz;
import klex.eserver.biz.systemmanager.permission.RoleBiz;
import klex.eserver.entity.OnlineClientRole;
import klex.eserver.javabean.RoleBean;

public class RoleBizImpl extends SystemManagerBiz implements RoleBiz {

	public Integer addRole(OnlineClientRole role) {
		return roleDao.addRole(role);
	}

	public Integer delAllRole(String sql) {
		return roleDao.delAllRole(sql);
	}

	public Integer delRole(String roleNumber) {
		return roleDao.delRole(roleNumber);
	}

	public List<RoleBean> findAllRole() {
		return roleDao.findAllRole();
	}

	public List<RoleBean> findRoleByRoleName(OnlineClientRole role) {
		return roleDao.findRoleByRoleName(role);
	}

	public OnlineClientRole getRoleByNumber(String roleNumber) {
		return roleDao.getRoleByNumber(roleNumber);
	}

	public Integer updateAllRole(String sql) {
		return roleDao.updateAllRole(sql);
	}

	public Integer updateRole(OnlineClientRole role) {
		return roleDao.updateRole(role);
	}

}
